package com.lh.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lh.api.vo.OneDoboVo;
import com.lh.api.vo.SearchVo;
import com.lh.api.vo.ShopDetailVo;
import com.lh.common.entity.admin.Shop;
import com.lh.common.enums.ShopTypeEnum;
import com.lh.common.enums.ShopSortTypeEnum;
import com.lh.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * @author gze
 * @ClassName:
 * @Description: (类作用)
 * @date: 2020-05-14 14:56
 */
public interface ShopService extends IService<Shop> {
    /**
    　* @description: 搜索商品和一元夺宝活动
    　* @author GaoZien
    　* @date 2020/5/14 0014
    */
    PageUtils<SearchVo> searchObj(Map<String, Object> params, Integer pageNum, Integer pageSize);

    PageUtils<SearchVo> searchObj(Map<String, Object> params, ShopSortTypeEnum sortType, Integer pageNum, Integer pageSize);

    List<SearchVo> getIndexList();

    PageUtils<SearchVo> getlist(String qureyTime, ShopTypeEnum shopType, Integer pageNum, Integer pageSize);

    PageUtils<SearchVo> getlist(String qureyTime, ShopSortTypeEnum sortType, ShopTypeEnum shopType, Integer pageNum, Integer pageSize);

    PageUtils<SearchVo> getRecommendShopList(String qureyTime, Integer pageNum, Integer pageSize);

    PageUtils<OneDoboVo> oneDoboList(String qureyTime, Integer pageNum, Integer pageSize);
    PageUtils<OneDoboVo> oneDoboList(String qureyTime, ShopSortTypeEnum sortType, Integer pageNum, Integer pageSize);

    ShopDetailVo getShopDetail(Long sid, Long userId);
}
